// 模版字符串函数可以对模版字符串进行二次逻辑处理
const name = 'tom'
const gender = true
function myTagFunc(strings,name,gender){
  console.log(strings,name,gender) //[ 'hey, ', ' is a ', '.' ] tom true
  //return '124'
  const sex = gender ? 'man' : 'woman'
  return strings[0] + name + strings[1] + sex + strings[2] //hey, tom is a man.
}
const result = myTagFunc `hey, ${name} is a ${gender}.`
console.log(result) //124